# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-colorclass
_pkgname=colorclass
pkgver=2.2.0
pkgrel=5
pkgdesc='Colorful worry-free console applications for Linux, Mac OS X, and Windows.'
url='https://pypi.org/project/colorclass/#files'
arch=('any')
license=('MIT')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('8e6be012b7671edfdd1723a64964e200b3617fd38545a46267eeb98d29133cb71016ee5a6d0ce98df86904467fb9df742dd612f7df33682cec11c81d5d51aa1b')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

